package com.training.content.domain;

import java.math.BigDecimal;
import com.training.common.annotation.Excel;
import com.training.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 区域对象 sys_zh_address
 * 
 * @author training
 * @date 2021-10-25
 */
public class SysZhAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域id */
    private Long areaId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String areaName;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    /** 区域等级 */
    @Excel(name = "区域等级")
    private Long levelType;

    /** 无行政区名名称 */
    @Excel(name = "无行政区名名称")
    private String shortName;

    /** 拼接的完全地区名称（中国,北京,北京市,海淀区） */
    @Excel(name = "拼接的完全地区名称", readConverterExp = "中=国,北京,北京市,海淀区")
    private String mergerName;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal lat;

    /** 拼音 */
    @Excel(name = "拼音")
    private String pinyin;

    /** 是否默认（1为默认） */
    @Excel(name = "是否默认", readConverterExp = "1=为默认")
    private Long isdefault;

    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setLevelType(Long levelType) 
    {
        this.levelType = levelType;
    }

    public Long getLevelType() 
    {
        return levelType;
    }
    public void setShortName(String shortName) 
    {
        this.shortName = shortName;
    }

    public String getShortName() 
    {
        return shortName;
    }
    public void setMergerName(String mergerName) 
    {
        this.mergerName = mergerName;
    }

    public String getMergerName() 
    {
        return mergerName;
    }
    public void setLng(BigDecimal lng) 
    {
        this.lng = lng;
    }

    public BigDecimal getLng() 
    {
        return lng;
    }
    public void setLat(BigDecimal lat) 
    {
        this.lat = lat;
    }

    public BigDecimal getLat() 
    {
        return lat;
    }
    public void setPinyin(String pinyin) 
    {
        this.pinyin = pinyin;
    }

    public String getPinyin() 
    {
        return pinyin;
    }
    public void setIsdefault(Long isdefault) 
    {
        this.isdefault = isdefault;
    }

    public Long getIsdefault() 
    {
        return isdefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("areaName", getAreaName())
            .append("parentId", getParentId())
            .append("levelType", getLevelType())
            .append("shortName", getShortName())
            .append("mergerName", getMergerName())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("pinyin", getPinyin())
            .append("isdefault", getIsdefault())
            .toString();
    }
}
